<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .container{
            width: 600px;
            height: 300px;
            background-color: skyblue;
            /* block; inline-block; inline */
            display: flex;
            /* 主轴的方向 */
            /* flex-direction: column; */

            /* 换行 */
            /* flex-wrap: wrap; */

            /* 在主轴上的对齐方式 */
            justify-content: space-between;

            /* align-content: start; */

            /* 设置在交叉轴上的对齐方式 */
            align-items: center;
       
        }
        .item1{
            width: 100px;
            height: 150px;
            background-color: red;
        }
        .item2{
            flex:1;
            height: 150px;
            background-color: green;
        }
        /* .item3{
            width: 100px;
            height: 100px;
            background-color: yellowgreen;
        } */
    </style>
</head>
<body>
    <h1>flex布局</h1>
    <div class="container">
        <div class="item1"></div>
        <div class="item2"></div>
        <div class="item3"></div>
    </div>
</body>
</html>